body {
    margin: 0;
    font-family: 'Times New Roman', sans-serif;
/*    background-color: #f0f0f0; /* Цвет фона для тела страницы */*/
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
/*    background-color: rgba(0, 0, 0, 0.7);*/
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

.header_logo img {
    align-items: center;
    max-width: 210px;
}

.red_button {
    
    display: inline-block;
    background-image: url('red_buttom.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 200px;
    height: 100px;
    color: white;
    text-align: center;
    line-height: 100px;
    border: none;
    cursor: pointer;
    transition: transform 0.1s; 
}

.red_button:hover {
    transform: scale(0.97);
}

.nav {
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    padding: 10px;
    align-items: center;
}

.nav_list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-right: 50px;
    justify-content: center;
    flex: 1;
}

.nav_item {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 3px;
    margin-right: 2px;
}

.nav_item a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px;
}

.nav_item a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.burger_menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    top: 20px;
    padding-right: 65px;
    z-index: 11;
}

.burger_menu span {
    width: 45px;
    height: 7px;
    background-color: #6699cc;
    margin: 5px 0;
}

.content {
    padding-top: 10vw;
    margin: 0 20px;
}

.lenta {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1200px;
}

.lenta_box {
/*    text-align: center;
    flex-direction: column;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}
.lenta_box_white{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
}

.lenta_box.white {
    background-color: #fff;
    color: #000;
}

.lenta_box.black {
    background-color: #333;
    color: #fff;
}
.lenta_box_1.black {
    background-color: #333;
    color: #fff;
}
.lenta_text_1{
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: center;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.lenta_text {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.5;
}
.lenta_box_1{
    text-align: center;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}
.lenta_image {
    flex: 1;
    max-width: 100%;
    padding-left: 20px;
}
.lenta_image_1 {
    max-width: 100%;
    padding-left: 20px;
}

.lenta_image img {
    max-width: 100%;
    border-radius: 12px;
}
.lenta_image_1 img {
    max-width: 70%;
    border-radius: 12px;
}

.grid{
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 0.5vw;
}
.P_text{
    text-align: center;
    color: red;
    font-size: 2rem;
}
.P_div {
    margin: 0 auto;
    width: 70%;
/*    width: auto;*/
    border-radius: 12px;
/*    border-color: white;*/
    background-color: orange;
}
.img_Ask{
    max-width: 190px;
    margin-right: 8.5vw;
    float: right;
}
.text_Ask{
    max-width: 52%;
}
.text_block_Asc{
    max-width: 55%;
}

@media (max-width: 1170px) {
    .img_Ask{
        max-width: 140px;
        margin-right: 3.5vw;
        float: right;
    }
    .P_text{
        font-size: 1.3rem;
    }
    .grid{
        display: grid;
        grid-template-rows: 1fr 1fr 1fr;
        grid-template-columns: 1fr;
        grid-gap: 0vw;
    }
    .nav {
        background-color: rgba(0, 0, 0, 0.0);
    }
/*    .header_logo img {
        align-items: center;
        max-width: 140px;
    }*/
    .nav_list {
        flex-direction: column;
        display: none;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 85px;
        left: 0;
        z-index: 9;
    }
    
    .red_button {
    
    display: inline-block;
    background-image: url('red_buttom.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 200px;
    height: 75px;
    color: white;
    text-align: center;
    line-height: 75px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s; 
        font-size: 0.8rem;
    }
    
    .header_logo img {
        align-items: center;
        max-width: 140px;
    }

    .nav_list.active {
        display: flex;
    }

    .nav_item {
        margin: 10px 0;
    }

    .burger_menu {
        display: flex;
    }

    .lenta_text {
        font-size: 1rem;
    }
    .lenta_text_1 {
        font-size: 1rem;
    }
    .lenta_box {
        flex-direction: column;
    }

    .lenta_image {
        max-width: 100%;
        padding-left: 0;
        margin-top: 20px;
    }
    .lenta_image_1 {
        max-width: 100%;
        padding-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .text_block_Asc{
        max-width: 90%;
    }
    .img_Ask{
        margin-right: 0;
        float: none;
    }
    .P_text{
        font-size: 0.9rem;
    }
    .nav {
        background-color: rgba(0, 0, 0, 0.0);
    }
    .header_logo img {
        align-items: center;
        max-width: 70px;
    }
    .nav_item a {
        font-size: 0.9rem;
    }

    .header {
        padding: 5px 10px;
    }

    .lenta_text {
        font-size: 0.8rem;
    }
    .lenta_text_1 {
        font-size: 0.8rem;
    }
    .red_button {
    width: 120px;
    height: 60px; 
    font-size: 0.6rem;
    }
}
